﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Point2d.Geometry
{
    public class Vector2
    {
        public float _width;
        public float _height;

        public void Normalize()
        {
            float length = GetLength();
            _width = _width / length;
            _height = _height / length;
        }

        public float GetLength()
        {
            return (float)Math.Sqrt(_width * _width + _height * _height);
        }
    }
}
